package com.work.demo.utils;

import java.util.Calendar;
import java.util.Date;

/**
 * @Author: kylin
 * @Date: 2021/4/21 下午5:46
 */
public class TimeUtil {


	/**
	 * 获取当前时间指定小时后的时间
	 */
	public static Date afterHours(Integer hours) {
		Calendar calendar = Calendar.getInstance();
		calendar.add(Calendar.HOUR, hours);
		Date date = calendar.getTime();
		return date;
	}
}
